#include <stdio.h>

#define N 3

int main(void)
{
	int a[5]={1,2,3,4,5};
	int (*p)[5];
	int *m;
	int *ptr;

	p = &a;
	ptr = (int *)(p+1);
	m = &a[N];

	printf("%d\n",*m);
	printf("%d\n",*p);
	printf("%d\n",p+1);
	printf("%d\n",(p+1));
	printf("%d\n",*(p+1));
	printf("%d\n",(int *)(p+1));
	printf("%d\n",*(int *)(p+1));
	printf("%d\n",*((int *)(p+1)));
	printf("%d\n",p);
	printf("%d\n",(*p)[1]);
	printf("the result is :%d\n", *(ptr-1));

	return 0;
}
